<script setup lang="ts">
import WebExcel from "./../../../src/index"
import useTable from "./useTable";
const { columns, dataSource } = useTable()
</script>

<template>
    <h4>自定义编辑插槽</h4>
    <WebExcel :columns="columns" :dataSource="dataSource" >
        <template #bodyEditCell="{column, record }">
            <a-input v-if="column.dataIndex === 'address'" placeholder="Basic usage" v-model:value="record[column.dataIndex]" />
        </template>
    </WebExcel>
</template>